package com.jueling.culture.model;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Column;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;


/**
 * @author liuzw
 * @date 2019/06/10
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Table(name = "ROLE_AUTHORITY")
public class RoleAuthority {
    /**
     * 自增主键
     */
    @Id
    @GeneratedValue(generator = "JDBC")
    private Integer id;

    /**
     * 角色id
     */
    @Column(name = "role_id")
    private Integer roleId;

    /**
     * 权限编码
     */
    private String code;

    /**
     * 权限：edit-编辑权限，view-查看权限
     */
    private String permissions;
}